package com.max.mice.orm.dbcp;

import java.io.File;
import java.io.FileInputStream;
import java.util.Properties;

import javax.sql.DataSource;

import org.apache.commons.dbcp.BasicDataSourceFactory;

public class Main 
{
	public static void main(String[] args) throws Exception
	{
		Properties prop = new Properties();
		prop.load(new FileInputStream(new File(Main.class.getResource("/").getPath()+"dbcp.properties")));
		
		DataSource dataSource = BasicDataSourceFactory.createDataSource(prop);
		
//		System.out.println(Main.class.getResource(""));
//		System.out.println(Main.class.getResource("/"));
//		System.out.println(Main.class.getClassLoader().getResource(""));
//		System.out.println(Thread.currentThread().getContextClassLoader().getResource(""));
//		System.out.println(ClassLoader.getSystemResource(""));
	}
}
